Buffer classes clean and pach in directory