add FLAG_ECHO support