Fix long standing issues involving pinging, and authentication