added control api for plugins to control papi