adding support for --key in server.js