read most of config in context initialization