added some logging that was missing
added sleep to slow down retry loops