add PHAR support