register pugmode