update code from neocore-auth