do away with process.exit