refactor metric manager