add the client code with plugins