add definitions for q-retry