latest snapshot script fixed