updates to upsert component templates