preparing for java2c