hacked the last pieces to process raw client data