typecheck the path
remove erroring things from the pipeline too