fixes #3, though the output of nested tags isn't very pretty