footer and misc bugfixes