fixed flags, added prefix, formatted metrics