put newmav logic in appcontext call