rewrite JOIN users listener