add raising interrupt flag and correct message timing