tweaks to accomodate redirection of log output