heads up: I'm still not fully in love with this implementation for subscribing to a document.