fix script, syntax fixes