make api default format configurable