fixed 64bit stuff