java parser (bugged but improved)