[fix] small fixes in console program