wip update peer url

i have not started to clean this commit up. just show the general idea.