improving url detection