add location manager and weather manager, and refine network part