working on Trace; add singleton; first draft for hostSetState;