working on server response processing