input/output function generators
interpreter now globally accessible
forgot restarting interpreter in input function