modified whoami to use refactored ref call