re-factor request from the main plugin code