rewrite agent/customer extensions too