some work for post-login init