read the config before forking