added argparsing for secret key handling