auth moved from init to connect