def process_appropriate(doc,cmd)
				
				return process_regex(doc,cmd) if(cmd.is_a? Regexp)
				return process_proc(doc,cmd) if(cmd.is_a? Proc)

				if cmd.is_a?(String)
					return process_xpath(doc,cmd) if cmd.start_with?("x|")
					return process_css(doc,cmd) if cmd.start_with?("c|")
				end
				
				nil

			end
def process_appropriate(doc,cmd)
				
				return process_regex(doc,cmd) if(cmd.is_a? Regexp)
				return process_proc(doc,cmd) if(cmd.is_a? Proc)

				if cmd.is_a?(String)
					return process_xpath(doc,cmd) if cmd.start_with?("x|")
					return process_css(doc,cmd) if cmd.start_with?("c|")
				end
				
				nil

			end
accepts nokogiri doc's only atm