change events emitter
no more onall- on takes an optional event.
added emitter tests to make it work