Qinqon work

Moved the oshelpers outside there were a problem with the marshalling, when creating a new provider extending another one.