better version of RF+spill almost working. Iterations missing