improve for command line window