added secret ; both server and client can write and read