should be able to throw exception from main