main method throws exception