first pass at flattening out some elements