added reuseaddr option to tcp listeners to avoid getting the addrinuse error