finished freebase integration