modify to work with pub global/run