fix issues with initial config building