made Console independent of Main