removed dependency on csh