oops, closing writer twice
support importing ts-specific attributes