correct order of script dependencies