add support for updating existing objects