phar is standalone
minor refractoring