fix typo in externs
support custom user string based tags so that write handler logic may be shared