added support for 64-Bit systems