running this from sgd.phar