modulize script