add primary key delegation if is set
Merge branch 'master' of github.com:mwaylabs/mct-core