fix synchronous vs. asynchronous requests