watch for errors or empty directory