change composer loading from phar to class