improved footer generation