add config sluper rewrite logic