fixed synchronization bugs with create server/client