functioning lm integration, no beam search