create a mainwindow if there is none, when called remotely to e.g. open a file
upd chlog