added automatic check for 64 v 32 bit architecture