add cloud primitive checking