fixed bidmach scripts