remove globals
loading searches
use default users
pass around pubsub
implement subscription matching