updates for dynamic templates