remove debugging code and also make the event handler config use the path variable instead of being hard coded