allow endpoint configuration of main and format