some magic for the entities