change get/setData to use long instead of int, to match pointer size on all systems