moved scripts to end of post