added some java stuff