lines 134-143, 149-158 and 162-171 are the same... could use a common ```refreshProjectConfig``` function ...