making DeployableService more thread safe