get response from input stream - BW