import sys for plot scripts