better classloading handling for MBean + sharing logic with tasks