split script into two scripts