now compiles, runs with file of up one million urls, segfaults eliminated