added support for footnotes