added log output, input/output filesize