added error handling and fixed multiple tweet terms