template maintenance