gets hash from server