add service module and simple api