first cut at passing outputs from stacks