added waveform loading and seeking