added more plugin-accessible functions