added locahost agnostism for urls