added forgotten init line, handle keyboard interrupts