phar extract api fix