renamed updatemetriccreds to set, added test, other review comments