code to find and run missing MEMD jobs