split s to two scripts