fixed a couple scripts