added EntityJoinEventHandler code by Christina and modified paths for libraries