fix string comparision and afile abuf issues