create service registration & fix bugs