input capture and echo command implemented but not tested