adding java stuff