progress on scope and cursor