re-wrote get_terms to be awesome