implement service methods based on service definitions