made BaseEntity to be loaded before other entities, to avoid errors when initializing the later