small improvements in console program