added fileio logging few fixes