embed action code cleanup