changing the use of :authority to make it optional