playlist fixes
cleanup helper functions