minor debug to entity and mongo