multiple playlist working

code is bit messy
clean it up later