before run on folder