modified LoadScript for MatrixBuilder class