remove unused code.
move interpreter creation to constructor.