finalizing scripts with clean path