cleaned up the code, removed the old dial stuff, and added in more modular code for dial server.