added interupt checks in various places. #123