fixed cursor_init bug
switched to named struct elements