use a map to store cursors