standardize and add min script