url structure and functions defined