tidy up folder checking