added Result.apply

wrapped in a try/catch