cleaning up footer, reordering flags