forgot that networking has to be done in a separate thread