improved console program