added versioning support for Entities