added PM slow loop check, first version of xml output