moved functions to freebase2neo from main