bunch of entity stuff