change initialize to init_session
tested trialfun_param_events. works now
merge not working