fix some java stuff