adding the possibility to have a console app