saving cues to file and loading from file