fixed for needing to run puppet twice beceause of missing providers, actually reverted to the old code