debug arg replacement