updated datacontext with stats support