added basic version for createObject, fixed tc