add new service and fix some bugs