added legacy auth support
rebuilt