refactor tcsh
saving