fixed pluvio giving nans in rare cases, separated scripts