moved ordering and layer checking from player to downloadmanager.