added java editing mode