added echo flag