moved AP checks to new directory.