added debugging to the raise event function
 added debug code to mixin
fixed typo in move