added a client plugin code