CTE parser work in progress, debugging mostly