added support for archive command