support array for rewrite in dispatcher