fixes for fct; cleanup
merged all stats versions
finalized migrate option
first migrate option draft
new code for stats generation