cursors and ref created

This should be persistent map.