add redirect_not_authenticated support