#25 better logging in rest client