update for write/read keys