API plugin working with new listening method