add support for searching backwards