change authenticate() to authenticateCommand()