pidloop partially done

(won't compile)