migrate some old freebase code from the original a-lister cli project