add various scripts; syntax fixes