added better retry mode
added sentry to logger