added experimental authentication support