add Playback class to handle all playback related things more elegantly