add local url into globals
fix tabulation into the code
introduce a way to define custom function into route
removed new line hacks