finally fixed parse issue for instagram and refactored thesaurus API