change code -1 to a constant in provisioners