fix prim-interface