event producer and some cleanup