push session_request,client_session structures as userdata
make more modular
re-factor request from the main plugin code