fix(client): move client to after arg parsing