event based rewrite

small core with everything going through events
why is this loop and the arguments a new object? you do not use it at all