add echostate.c to test echo setting