corrected server response parsing