add rest auth support
to debug false