added wrap-file-info middleware