added arch check