add %newobject directive