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