java mode improvements