refix script lines