apply Samer's patch to OSPi interval program