add default service and refactoring EntityBase