64bit support
safety checks