helps to use the right url