added config downloading