add pathnames.h, make errors more consistent