fixed a regression where the format had no default value when running in non-interactive mode
fixed CS
fixed unit tests