fix config fetching