modified the scripts