refactor configuration module and freeze paths