looking to match entire unrouted url, pop the last part off and use it as ep hash
fixed refactor error