a simple plugin for rating, can be access by api