added crucial code to interrupt to avoid clash with serial i/o