added 32bit support