plugin code and documentation