adjusts to url structure