managing freebase api errors