write footer only if asked