changed async requests to synchronous