modify batch update to allow serialization