added client creation to parser