base template: cleanup