refactor to parse out usernames