update whoami function