created context wrapper and added autofac configuration