make cmdwin a little nicer to use