updates to support ref cursors