make client read and write commands using resp package