clean up scripts a little bit