add options attrib to endpoint