attempted to prevent spex from applying to layout to pages where that would be unwanted