updated RF script