clean up after building template system.