update script for encoded on prod