attempt to externalize the process_autoconfig to make it maintain context