better footer handling