refactor template creation to no longer specify location