DONT PULL YET remove unneeded param from setloggedinuser func