set config before loading anything