add plugins needed functions