added echo logging