updated pcoa return to be json