threadsafe enhancement on codedeploy for createobject