up some pinvoke