sed updated to new eventmanager, and timelistener interfaces
renamed vars accordingly