added triggers and functions to EntityLoader