refactored and exposing some JMX attributes