rewrite to only send report when needed