setup codewords on startup