update cs to support -e option.