add a clean rule.
support running on a server.