rename pailPath to just dirpath