make wm_name work