modified console class