Right now there's a circular reference path in our code base:
lib/interface.ts->
lib/apisession/session.ts->
lib/subscription/subscription.ts->
lib/util/historical-buffer-manager.ts->
lib/interface.ts
Will have to remove this circular reference problem.