refactor loading of playlists