this needs to go somewhere else, the scriptengine shouldn't manage EventPolls