moving the query_patch.rb