removed bad dem and updated scripts