changed requests to asynchrony; added reachability to check internet connection;