add echo functionality