performance

performance improvement, first match wins. stops multiple requests bug.