note beginning and end of each directory