added logging in client