add entities and layers