update sampleservice to use key.build