use this.basename in plugins