add cmdparam and textlines management