updated with nested stack templates