added logging for when entity file contains an error