should probably return 0 here for the sys.exit call.