build scr script