--curl debug option, lots of fixes to provision model and provision sn