move scripts to the end to avoid problems with ordering