add smart auth controll