add pathnames library and move files around