whoami feature manually copied from github user mattdesl