eventemmiter based script half way done