add rudimentary error checking in playlist()