moves scripts to before script