current version of adding materials to Complex Objects. works, but far from optimal