added config file
added retries