add debug message when write/read key is not set