refactor singleton to ease use by bos-performance project