beer template cleanup