automatic chip version detection