updated code to use logger and wrap operations for building file list