inlined isClosedTag

& (really) fixed opts passing