commander functions moved out to commander.js from server.js