modified osprd_process_request function