working on Trace; add singleton; first draft for hostSetState; (4)
working on Trace; add singleton; first draft for hostSetState; (5)