made nest persist changes in the inner monad