add debug for pm