need to resize per atom arrays after we know whether extended flags are used