new AFC command, fixing memory bugs, new AFC test