fix some scripts to work better, two new scripts