added distribute upgrade to compile