made soem changes, adding a new file to deal with emulation files.