use forward search to get matches (fix #28)