added debug flags
added debug flags, changed archive command to exclude cache files