a better error message on cursor/list mismatch
fixed double slash when path is /