- improvements for rest client authentication