setup entities only if setup_entities equals true