minor fixes to a, p-file readers