fixed api generation to reflect proper ordering of consume, status and produce