script for freebase