convert more small scripts to code that is already in the repo [ci skip]