generalized return url