flatten subobjects and check for mbox lib