use toOutput from Core.Compile