url routing v2.1

fixed: check url, if not, check if its a function, if not, its
undefined.