updated genesys script