refactoring, also allowed tiles with tasks that reference events with handlers