initialize event handler in child process