refactor beforeSend event. get erquest wrapper instead of guzzle request