object: add repository argument to create_object