tidy up scripts