added reading in the settings file plus auto connects to local host