making script compatible with current Jalangi