import sys to stop dying on warning messages