added some stuff re: logging with monad writer