allow jmonitor to create a new object without a raw pointer