get rid of java dependency