this is for console.