fix api issue with echo_all function