move ts error filter to new API