handlers for explicit return codes