get contracts from server