add reader monad for configuration, test script