remove old code and add additional logic to user object from github