first cut of ref cursors