major refactor to better integrate the backend with the main config. No need to store the data in memory in many places.