changes to the baddata script