got the stateful stuff working. kind of a lazy singleton.