settings loading restructured