adding some exception handling to examples