use custom config for compile()