legacy gifpumper code