refactor jmx