fixed minor scripts