add local url into globals
fix tabulation into the code