footer: child code should be before common code