using nopt for arguments, adding encoding options, from-backup, etc