server and client changed into each other