partial code for prov

Pushing to continue dev somewhere else :)