expose service functions using plugin.expose()