adding subs
commented hooks expansion
addding global migration  support
version with global migration  support