add support for looply read line for cmd