centralizing the external server related stuff