Content distribution in complex environments