Treatment with epoxides or oxyalkylation reactions