move config to pre_compile