move config initialization into main()