files end with \n
the beginning of key decoding