a potentially fully working implementation of the advisor plugin