serialize and send uer