fixes in wpm and wpmprog