moved config into a ReaderT