port to newer kmscon