added logic for mfqs
added stuff to mfqs.cc
added stuff to mfqs.cc2