RF: changed streamwarp to work with the new Optimizer class