beginning of service implementation