events: setMaxListeners must be a positive integer