i don't think we need the layout arg here.. use in->layout instead?