handle null input, like when ctrl+d pressed