update serialize/unserialize methods for response object