fixes when using command line