fixed the response to be non-blocking