fixed signature so Pinvoke would stop crashing