add class to monitor directories specified