fix error reporting & allow portbox to return false to reject data