working on pi for java