write config before accessing thru http to avoid generated setup using wrong config