changed argument handling to allow encryption

still need to implement the encryption/decryption logic