also expose custom state of the task in the API