proto code for dealing with contracts