added tcsh support