first commit (refactor jts-infer)