factored out all the 'echo' commands to data files