added code for a wrapper to the model src-gen, it did not work but i'm keeping it so that if i find a solution it's not gone