footer + leafline fixes