added logOutput option