add a check for empty input files
move scripts to a separate folder