more fixes for interupt routine in capture