knock init

moving some knock init code into knock.c