added interrupt handling to lines