added missing try-catch