swap to java based mantle