rearrange scripts