64 bit somewhat working at runtime. need to test all functionality
to make sure. fixes are pretty trivial.