furhter logging + split fix
use a dict to store filestats rather than enum