added building of url for server