added 32 bit support