added java support