tuning up scripts