broken
now logsim passes pointer to ifstream