setup weight now in runtime
-original longterm ctx now is stored before be incremented
-initial changes to support collab applications send events