update code for updated JNA