working on key-based auth. Added a --key-file option