update build for new embed mechanism