improve show_pwd