add max_field_length param and verbose switch