fixed empty json issue. need to do all network requests in async thread