serialization of inlined and independent resources