add cofee script support, migrated utils