added check for retry options