send java-serializable obj between server and client. fix bug