min script lib