issue_168: fix text matching not working
issue_168: use to_a instead of all to load all records
issue_168: minor clean up