improved the way that user info is sent and recived