reset retries add logging
wrap setTimeout callbacks