passing config with eventemitter