callout rewrite