agrego main embed switch