added phar support