made asyncronous all the operations related to network