local to remote gen url