trying to get exception handling to work