scripts code