support for new and create entity