merge two scripts