script enhancement with GemFire integration