added error handling for private playlists