protect hanging entities