adding java pid verification