lots of entity stuff