try catch on profile