with console call back