mqdes should be open in subprocess