add "detail" argument if detail != null into event handlers
allow to put objects into arguments array
move event args to the end