improved logging on file utils