add sub ownership code
this way I can add view cursors without problems