using mop for entity classes, resolves #3