implement echo using channel api