initial attempt at the tidy script