improved reading of user-input for console-application