messing with rendering according to layer definitions