changed retry_wait to retries in main.py