suppressing output on query error
improved error checking for rank_map
fixed array_filter
Merge remote-tracking branch 'upstream/master'