add config and footer