added interrupt code
don't ignore criticality anymore!