echos
added logging code