working on taking assert failures out of layout.rs