rewrite common service

rewrite common service