add log message for read and write files..