improve config compile method interface