namespace op/prim/state
compilation fixes