debug registration method