added returnCursor to all()