Refactor scribe so it doesnt connect so many times