pass arguments from event to handler; fixes #368