fix shared scripts