automatically detect 64/32b target +small changes