move logical of LoadConfig into config pkg