exception being thrown from save in console mode