grab input from console insteads of swing