to pass capproto and workstate