template sys prep script