update main script file