add deliver service and endpoints. fixed #4