ensure that key is always set