minor changes (added utility functions needed for saving emulink files)