tidyup playlist monitoring code