null value handling, $KEY macro handling