template cleanup, start of rules enforcement