Transforming eventhandler in daemon