added support for logfiles