add `import sys` to minard_dispatch