Add some minor function in the provider module

Just add some little things to the provider.go module, there is no big changes ! And this is my first pull request, so i  hope it wasn't wrong to do it ...

thanks