more tweaks to the delay loop in the capture thread