initial interrupt code, not tested