used new version of xregexp to build router