added better flag support and youtube embedding