explain the double-layout business. see also @8b9a532