added handling of echo command into both files