removing sys.exits