modified crafted data script and trainer