initial import from https://sourceforge.net/p/voicekey/lms/ci/default/tree/