fix wrong suggestion when asking for url
move function to more appropriate position