removed configs and created env
Fixed Contex and support for persistent