implemented echo mode