small fixes in provisioning and added the maxSites paramter