changed before-script to script