call EventEmitter constructor
refactor authentication errors