primitive version of master layout