fixed scripts, smaller other changes