in a console app, how can that be done