added footer support

It's quite hacky but it seems to work.