put handler into a static member, that worked