trying to get mdEntity to work