added check for AA file in rep file merge