commit cold start section
rename & put the plan in comments
get the fids and their meanings; add out filename as a parameter
borrow program from arowana project.