added config file and modify fetch script