added support for batch creating objects