adopted coco's per nesting flags

all credits to @satyr of course