a very basic treatments api, we may want to join this with entries, but keeping it seperate at first will make it easier to experiment