regenerate phar