initial work on threaded interpretation. Doesn't quite work yet