added interrupt handler to chip2