added external log file support