added cursor_lock config option