refactor location instance var
client create url bug fix