added checks for set/incr and added prefix 'persistent-' for custom metrics