made it play nice with java agent.