some fixes and authentication automatically detected