added extra try-catch