use catch APIs instead of annotator