added require and basepath to domain so we could require other files during event processing