implemented cpSvc
added cpSvc to code