made some changes to how wrapper classes are copied
added support for inquireContext -- see #4