walk directory and get list of files in them
lambdas is in separate file
some cleanup