plugin now follows the real api flow