remove class paramenter from register_XXX_command