splited to client and service